/**
 * Created by huangxuehua on 2017/12/4.
 */

var xpHome = new Vue({
    el:'#app',
    data:{},
    methods:{

    }
});
var toast = new auiToast(); //初始化toast事件
function saveMsg() {
    var uName = $('#userName').val();
    var pwd = $('#userPwd').val();
    var Params = {}
    if (!uName) {
        toast.custom({
            title: "请输入账号",
            html: '',
            duration: 2000
        });
        return false
    }
    if (!nUtils.checkTel(pwd) && !nUtils.checkEmail(pwd)) {
        toast.custom({
            title: "请输入密码",
            html: '',
            duration: 2000
        });
        return false
    }
    Params.createBy = name;
    Params.contact = contact;
};

//    底部菜单栏
//    var tabfooter= new auiTab({
//        element:document.getElementById("footer")
//    },function(ret){
////	    	console.log(ret);
//        if(ret){
////	            document.getElementById("demo").textContent = ret.index;
////	            if(ret.index == 2){
////	            	 window.location.href = "/vlth5/view/progress_check.html";
////	            }else if(ret.index == 3){
////	            	 window.location.href = "/vlth5/view/vlt_org.html";
////	            }
//        }
//    });

//    var topDiv = new auiTab({
//        element:document.getElementById("topDiv")
//    },function(ret){
////	    	console.log(ret);
//    });